package net.hn.hnms.biz.support.controller.feign;

import net.hn.hnms.biz.support.domain.dto.BaseSensorCoordDto;
import net.hn.hnms.biz.support.service.RoofService;
import net.hn.hnms.biz.support.service.SupportService;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * 远程调用矿压监测系统数据
 */
//@ApiIgnore
@RestController
@RequestMapping("/remoteCjdy")
@Validated
public class RemoteKyjcController {
    /**
     * 冲击地压服务
     */
    @Resource
    private RoofService roofService;
    /**
     * 生产监控服务
     */
    @Resource
    private SupportService supportService;


    /**
     * 获取矿压监测（锚杆所.顶板.支架）BaseSensorTable表所有信息
     */
    @GetMapping("getKyjcBaseSensorTableAllList")
    public List<BaseSensorCoordDto> getKyjcBaseSensorTableAllList(String mineCode, String companyCode){
        List<BaseSensorCoordDto> baseSensorInfoNowPoList= roofService.getKyjcBaseSensorTableAllList(mineCode);
        return baseSensorInfoNowPoList;
    }
    /**
     * 获取生产监控的支架数据BaseSensorTable表所有信息
     */
    @GetMapping("getProductionZjjcBaseSensorTableAllList")
    public List<BaseSensorCoordDto> getProductionZjjcBaseSensorTableAllList(String mineCode, String companyCode){
        List<BaseSensorCoordDto> baseSensorInfoNowPoList= supportService.getProductionZjjcBaseSensorTableAllList(mineCode);
        return baseSensorInfoNowPoList;
    }
    /**
     * 获取冲击地压钻孔应力BaseSensorTable表所有信息
     */
    @GetMapping("getZkylBaseSensorTableAllList")
    public List<BaseSensorCoordDto> getZkylBaseSensorTableAllList(String mineCode, String companyCode){
        List<BaseSensorCoordDto> baseSensorInfoNowPoList= roofService.getZkylBaseSensorTableAllList(mineCode);
        return baseSensorInfoNowPoList;
    }
}